package org.zachary.commonservice.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.zachary.commonservice.entity.News;
import org.zachary.commonservice.entity.NewsDTO;

import java.util.List;

@Mapper
public interface NewsMapper {
    List<News> list();

    void add(NewsDTO news);

    void delete(Integer id);

    void update(News news);
}
